package com.log.blog_backend.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user_info")
public class UserInfo  implements Serializable {

    @TableId(value = "userInfo_id")
    private String userInfoId;

    @TableField(value = "userId")
    private String userId;

    private String nickname;

    private String gender;

    private String content;

    private String area;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    private Date birth;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    @TableField(value = "workTime")
    private Date workTime;

    private  String school;

    private String major;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")
    @TableField(value = "studyTime")
    private Date studyTime;

    @TableField(value = "eduLevel")
    private  String eduLevel;

    private String company;

    private String poistion;

    private String industry;

}
